require("Interactor")

IntercectionWithEntitiesInteractor = class("IntercectionWithEntitiesInteractor", Interactor)

---

function IntercectionWithEntitiesInteractor:initialize(manager)

	Interactor.initialize(self)
	
	self.manager = manager
end

---

function IntercectionWithEntitiesInteractor:decohere(sourcePropertyValueSet)

	local intercection = {}
	
	for sourcePropertyValue, sourceProbability in pairs(sourcePropertyValueSet)
	do			
		if self.manager:getIntercection()[sourcePropertyValue]
		then
			intercection[sourcePropertyValue] = sourceProbability
		end
	end

	return intercection
end